package pl.nazaweb.imedproplus.rest.pojo;

import java.math.BigInteger;
import org.codehaus.jackson.annotate.JsonWriteNullProperties;
import pl.nazaweb.imedproplus.model.entity.OrganizationStructure;

@JsonWriteNullProperties(value=false)
public class OrganizationStructureTreePojo {
    
    public String text;
    public Long id;
    public Boolean leaf = true;
    public Boolean expanded = false;
    public Boolean expandable = false;
    public BigInteger parentId;

    public void setElement(OrganizationStructure element) {
        this.text = element.getName();
        this.id = element.getId();
    }
    
}
